package com.lc.pda.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 入库单子表
 * </p>
 *
 * @author zww
 * @since 2023-07-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wms_receipt_detail")
@ApiModel(value="WmsReceiptDetail对象", description="入库单子表")
public class WmsReceiptDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "receiptdetailId", type = IdType.AUTO)
    private String receiptdetailId;

    @ApiModelProperty(value = "外键")
    @TableField("receiptId")
    private String receiptId;

    @ApiModelProperty(value = "入库类型")
    @TableField("receiptType")
    private String receiptType;

    @ApiModelProperty(value = "入库单号")
    @TableField("receiptCode")
    private String receiptCode;

    @ApiModelProperty(value = "批号")
    @TableField("lotNo")
    private String lotNo;

    @ApiModelProperty(value = "物料编码")
    @TableField("materialCode")
    private String materialCode;

    @ApiModelProperty(value = "物料名称")
    @TableField("materialName")
    private String materialName;

    @ApiModelProperty(value = "计量单位")
    @TableField("materialUnit")
    private String materialUnit;

    @ApiModelProperty(value = "物料规格")
    @TableField("materialSpec")
    private String materialSpec;

    @ApiModelProperty(value = "计划数量")
    @TableField("planQty")
    private BigDecimal planQty;

    @ApiModelProperty(value = "实际数量")
    @TableField("realQty")
    private BigDecimal realQty;

    @ApiModelProperty(value = "入库状态字典")
    @TableField("receiptStatus")
    private String receiptStatus;

    @ApiModelProperty(value = "物料类型 0：良品 1：不良品 2：报废品")
    @TableField("storeType")
    private String storeType;

    @ApiModelProperty(value = "审核人")
    private String reviewer;

    @ApiModelProperty(value = "操作者")
    private String operator;

    @ApiModelProperty(value = "入库指令")
    private String izlid;

    @ApiModelProperty(value = "工厂代码")
    private String werks;

    @ApiModelProperty(value = "过账日期")
    @TableField("pstngDate")
    private String pstngDate;

    @ApiModelProperty(value = "收货单号")
    @TableField("receiptNo")
    private String receiptNo;

    @ApiModelProperty(value = "收货单行项目")
    @TableField("receiptItemNo")
    private String receiptItemNo;

    @ApiModelProperty(value = "进仓单号")
    @TableField("inboundNo")
    private String inboundNo;

    @ApiModelProperty(value = "进仓单行项目")
    @TableField("inboundItemNo")
    private String inboundItemNo;

    @ApiModelProperty(value = "供应商")
    private String lifnr;

    @ApiModelProperty(value = "供应商描述")
    private String liktx;

    @ApiModelProperty(value = "条码")
    @TableField("labelNo")
    private String labelNo;

    @ApiModelProperty(value = "包条码Id")
    @TableField("packLabelNo")
    private String packLabelNo;

    @ApiModelProperty(value = "栈板条码Id")
    @TableField("palletLabelNo")
    private String palletLabelNo;

    @ApiModelProperty(value = "托盘码")
    private String tpnum;

    @ApiModelProperty(value = "是否处理标记")
    private String flag;

    @ApiModelProperty(value = "过账失败原因")
    private String tktxt;

    @ApiModelProperty(value = "采购单号")
    @TableField("poNo")
    private String poNo;

    @ApiModelProperty(value = "采购单行号")
    @TableField("poItemNo")
    private String poItemNo;

    @ApiModelProperty(value = "特殊库存类型")
    private String sobkz;

    @ApiModelProperty(value = "仓库编码")
    @TableField("warehouseCode")
    private String warehouseCode;

    @ApiModelProperty(value = "业务功能代码")
    @TableField("businessCode")
    private String businessCode;

    @ApiModelProperty(value = "业务功能名称")
    @TableField("businessName")
    private String businessName;

    @ApiModelProperty(value = "余料单号")
    @TableField("returnNo")
    private String returnNo;

    @ApiModelProperty(value = "余料行号")
    @TableField("returnItemNo")
    private Integer returnItemNo;

    @ApiModelProperty(value = "余料退回指令")
    private String lzlid;

    @ApiModelProperty(value = "是否启用")
    @TableField("enabelMark")
    private Integer enabelMark;

    @ApiModelProperty(value = "是否删除")
    @TableField("deleteMark")
    private Integer deleteMark;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建者")
    @TableField("createBy")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("createTime")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者")
    @TableField("updateBy")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("updateTime")
    private LocalDateTime updateTime;


}
